/**
 * 登录相关
 */
export interface LoginInter {
  mobile: string
  code: string
}

/**
 * 用户相关
 */
export interface UserInter {
  id?: string
  photo?: string
  name?: string
  mobile?: string
  gender?: string
  birthday?: string
  intro?: string
}

/**
 * 文章相关
 */

// 频道列表数据
export interface ChannelListType {
  id: number,
  name: string
}
export interface ArticleInter {
  id?: string
  title: string
  content: string
  cover: {
    type: number
    images: string[]
  },
  channel_id: string
  pub_date?: string
}

export interface ArticleQueryParamsInter {
  status: string
  channel_id: string
  begin_pubdate: string
  end_pubdate: string
  page: number
  per_page: number
}